package com.example.housingRentalSystem.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author 王硕
 * @version jdk21
 * @className News
 * @description 新闻实体类
 * @date 2025/3/24 15:44
 */
@Data
@ApiModel(description = "新闻实体")
public class News {
    @ApiModelProperty(value = "新闻主键ID", example = "1")
    private Integer id;
    @ApiModelProperty(value = "创建时间", example = "2025-03-24T15:44:00Z")
    private Date createTime;
    @ApiModelProperty(value = "新闻标题", example = "最新租房政策出台")
    private String title;
    @ApiModelProperty(value = "新闻内容", example = "政府发布了最新的租房补贴政策...")
    private String content;
    @ApiModelProperty(value = "关联房源ID", example = "101")
    private Integer houseId;
    @ApiModelProperty(value = "删除状态（0：未删除；1：已删除）", example = "0")
    private Integer deleted;
}